package main

import (
	"os"
)

func main(){
	filePath := "../1.txt"
	file,_ := os.OpenFile(filePath,os.O_WRONLY | os.O_TRUNC,0666)
	var slice []byte = make([]byte,5)
	slice[0] = 'a'
	slice[1] = 'b'
	slice[2] = 'z'
	slice[3] = 'y'
	slice[4] = 'x'
	file.Write(slice)
}
